<template>
  <div>
    <h1>班级管理</h1>
    <textObj title="姓名" v-model="name"></textObj>{{name}}
    <hr>
    <selectObj title="请选择学生" :array="studentArray" v-model="studentId" info="stuId:name" 
    ></selectObj>{{studentId}}
  </div>
</template>

<script>
export default {
    data(){
      return{
        name:"dd",
        studentArray:[{stuId:1,name:"张三"},{stuId:2,name:"李四"},{stuId:3,name:"王五"}],
        studentId:""
      }
    }
}
</script>

<style>

</style>